package com.nook.common.enums;

import lombok.Getter;

/**
 * 限流类型 枚举
 * @author ruoyi
 */
@Getter
public enum RateLimitTypeEnum {

    /**
     * 默认策略全局限流
     */
    DEFAULT(1,"默认"),

    /**
     * 根据登录用户凭据进行限流
     */
    TOKEN(2,"token"),

    /**
     * 根据请求客户端IP进行限流
     */
    IP(3,"ip"),
     ;

    private final Integer code;
    private final String codeName;

    RateLimitTypeEnum(Integer code, String codeName) {
        this.code = code;
        this.codeName = codeName;
    }


    }
